home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: #include --> Question
- Date: 28 Feb 1996 18:38:32 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4h2si8$1bf@solutions.solon.com>
- References: <4gvp2c$sdr$1@mhafc.production.compuserve.com> <4h1d2l$4n3@pyrrhus-f.hrz.tu-chemnitz.de>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4h1d2l$4n3@pyrrhus-f.hrz.tu-chemnitz.de>,
- Hans Steffani <hfst@hrz.tu-chemnitz.de> wrote:
- ><Matt> mmartone@mysite.com <76002.702@CompuServe.COM> writes:
- >> How do i include a file with the #include statement? the
- >>file is "c:\snappy\1.gif".
-
- >with
- > #include "c:\scanppy\1.gif"
-
- >However I am not sure whether you like the errors occuring
- >when you compile the contents of a gif file.
-
- Heh.
-
- Unfortunately, your answer is clear, concise, and wrong.
-
- The character '\' introduces undefined behavior in a header file name.
- Since the only system in wide use that ever uses this character for
- a directory separator also accepts the more conventional '/' as a
- separator, it is probably better to write
-
- #include "c:/scanppy/1.gif"
-
- (Although I share Hans' skepticism about the probability of a file named
- foo.gif containing valid C code.)
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-